package com.sunshine.lnuplus.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import com.sunshine.lnuplus.ui.fragment.*

class MainFragmentAdapter(fm: FragmentManager) : FragmentPagerAdapter(fm) {

    private val fragmentList: List<Fragment> = listOf(
        TodayFragment(),
        TimetableFragment(),
        CountDownFragment(),
        FunctionFragment()
    )

    override fun getItem(position: Int): Fragment {
        return fragmentList[position]
    }

    override fun getCount(): Int {
        return fragmentList.size
    }
}